1. Long-Term Scheduler (LTS)
Also known as the Job Scheduler. It decides which processes from the storage disk should be brought into the main memory (RAM). Its primary goal is to control the degree of multiprogramming—the number of processes in memory. By carefully selecting a good mix of processes, it ensures the system runs efficiently without being overloaded.
2. Short-Term Scheduler (STS)
Also known as the CPU Scheduler. It selects one of the processes that is ready in RAM and allocates the CPU to it. This scheduler runs very frequently. The choice of which process to run next is made by a scheduling algorithm, like Round Robin (used in this simulation).
3. Medium-Term Scheduler (MTS)
This scheduler is responsible for swapping processes out of RAM and moving them to the disk (suspending them) to free up memory. Later, it can swap the process back into RAM to continue its execution from where it left off (resuming).
4. The Ready Queue
This is a queue of all the processes that are loaded into RAM and are waiting for their turn to be executed by the CPU. The Short-Term Scheduler picks processes from this queue.